<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>

    <style>
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .checkbox-inline {line-height: 5px;}
        .search{ width: 25%;}/* 设置搜索框宽度 */
        .layui-layer.layui-anim.layui-layer-page  {
            width: 550px!important;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak >
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">

                <div class="example" style="margin-top: -10px;">
                    <div class="btn-group" id="toolbar" role="group">
                        <button type="button" class="btn btn-outline btn-default" @click="add(0)" v-if="permission(0)">
                             <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                            添加
                         </button>
                        <button type="button" class="btn btn-outline btn-default" @click="addOrg(0)" v-if="permission(0)">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                            合作机构中查找添加
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="update(1)" v-if="permission(1)">
                            <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
                            修改
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="del(2)" v-if="permission(2)">
                            <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                            删除
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="mulDel()">
                            <i class="glyphicon glyphicon-ok" aria-hidden="true"></i>
                            批量操作
                        </button>
                        <div style="display: inline-block;margin-left: 20px">
                            <select class="form-control" id="gstate" @change="selectStatus">
                                <option value="">---商品状态---</option>
                                <option value="1">已上架</option>
                                <option value="0">未上架</option>
                            </select>
                        </div>
                    </div>
                    <table id="bootstrapTableEvents"></table>
                </div>

            </div>
        </div>
    </div>

    <div class="ibox float-e-margins" id="select" style="display: none">
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">商品状态</label>
            <div class="col-sm-9">
                <select class="form-control" name="state" style="margin-bottom: 10px;">
                    <option value="">---不改变---</option>
                    <option value="1">上架</option>
                    <option value="0">下架</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">是否新品</label>
            <div class="col-sm-9">
                <select class="form-control" name="isNew" style="margin-bottom: 10px;">
                    <option value="">---不改变---</option>
                    <option value="1">是</option>
                    <option value="0">否</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">是否热销</label>
            <div class="col-sm-9">
                <select class="form-control" name="isHot" style="margin-bottom: 10px;">
                    <option value="">---不改变---</option>
                    <option value="1">是</option>
                    <option value="0">否</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">是否置顶</label>
            <div class="col-sm-9">
                <select class="form-control" name="isTop" style="margin-bottom: 10px;">
                    <option value="">---不改变---</option>
                    <option value="1">是</option>
                    <option value="0">否</option>
                </select>
            </div>
        </div>
        <div class="form-group" style="text-align: center;padding-top: 10px;clear: both">
            <a href="javascript:layer.closeAll();" class="btn btn-default" >关 闭</a>
            <button type="submit" class="btn btn-primary" @click="mulDelPush()">确 定</button>
        </div>
    </div>
</div>
<script src="../../../../js/content-manage/goods/goods/list.js"></script>
</body>
</html>
